package com.zzw.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.zzw.bean.ClassOfStudent;
import com.zzw.bean.Student;
import com.zzw.bean.User;
import com.zzw.service.imple.IClassOfStudentService;
import com.zzw.service.imple.IStudentService;
import com.zzw.utils.*;


@Controller
public class ClassOfStudentController {
	@Autowired
	IClassOfStudentService service;
	
	/**
	 * 转发页面
	 * */
	@RequestMapping("/classList.do")
	@ResponseBody
	public ModelAndView classList(ClassOfStudent cos) {
		ModelAndView mv=new ModelAndView();
		List<ClassOfStudent> list=service.selectClass(cos);
		mv.addObject("list",list);
		mv.setViewName("class_list");
		return mv;
	}
}
